@extends('linfeng.home.person')
        @section('title','我的订单')
        @section('first-person')
            <div style="font-size:14px;padding:20px;" class="modal-content">
                <div class="my-order-wrap">
                    <table class="table my-order-list" data-token="b85c364572f96a34c7a2e04eeee935e4">
                        <thead>
                        <tr class="warning" style="text-align:center;">
                            <td class="order-num-h">订单号</td>
                            <td class="order-name-h">订单商品</td>
                            <td class="order-shoop-h">购买章书</td>
                            <td class="order-time-h">购买时间</td>
                            <td class="prder-one-h">章节单价</td>
                            <td class="prder-name-h">章节名</td>
                            <td class="order-fee-h">总价</td>
                            <td class="order-status-h">状态</td>
                        </tr>
                        </thead>
                        <tbody>
                        {{--一条订单--}}
                        @foreach($orders as $k )
                            <tr data-trade-id="2017041300214717421" data-trade-status="0" data-bank-pay="0.00">
                                <td>
                                    <div class="ie8-td-fixed">
                                        {{$k->orderson}}
                                    </div>
                                </td>
                                <td>
                                    <a class="good-title" href="" target="_blank">{{$k->bookname}}</a>
                                </td>
                                <td>
                                    <div class="ie8-td-fixed">
                                        <p>共买{{$k->num}}章</p>
                                    </div>
                                </td>
                                <td class="order-time-b">
                                    <div class="ie8-td-fixed">
                                        {{date('Y-m-d h:i:s',$k->addtime)}}
                                    </div>
                                </td>
                                <td>
                                    <div class="ie8-td-fixed">
                                        {{$k->danjia}}
                                    </div>
                                </td>
                                <td>
                                    <div class="ie8-td-fixed">
                                        {{$k->chapterssum}}章
                                    </div>
                                </td>
                                <td>
                                    <div class="ie8-td-fixed">
                                        {{$k->danjia*$k->num}}
                                    </div>
                                </td>
                                <td>
                                    <div class="ie8-td-fixed">
                                        @if(($k->addtime-time()) < 86400 )
                                            一天内购买
                                        @elseif($k->addtime-time()) < 604800)
                                        一星期内购买
                                        @else
                                            购买成功
                                        @endif
                                    </div>
                                </td>
                            </tr>
                        @endforeach
                        </tbody>
                    </table>
                    {{$orders->links()}}
                </div>
            </div>
@endsection

